<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Models\Detail;
use Illuminate\Http\Request;

class DetailsController extends Controller
{

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function index()
    {

    }


    public function create(Request $request)
    {

        $details = Detail::query()->where('id', $request['id'])->paginate();
        if (!$order) {
            return abort(404);
        }
        return view('layouts.order', [
            'details' => $details
        ]);
    }

}
